#{extends 'baseTemplate.html' /}
#{set title:'计划下发->[计划下发]-创建'/}
#{set 'moreStyles'}
<style >
.order-table-detail2 thead tr th {
    background: #e7f5f9;
    border: none;
    font-weight: normal;
    text-align: center;
}
.col-xs-5 span.color666666{
	float:left;
	width:70px;
	padding:4px;
}
.fileshow{
	background-color: #E4E4E4;
    padding: 5px 8px;
}
.ship-add{
	vertical-align:middle;
	background: #f7f7f7;
    height: 58px;
    line-height: 58px;
}
h4.text-right{
	line-height:58px;
}
.col-xs-5 span.color666666{
	width:80px
}
.w70{
	width:67px
}
.table>tbody>tr>td{
	padding-left:4px;
	padding-right:4px;
}
.m-b-10{display:inline-block;float:left;margin-right:10px;}
.bton{ padding-left: 5px; padding-right: 5px; padding-bottom: 5px; padding-top: 5px; }
.v{font-size:12px;font-weight:bold;border-border:1px solid #ddd;padding:8px;margin-top:-16px}
.input_label{float:left;width:60px;line-height:31px}
.m-b-10{display:inline-block;margin-right:10px}
td div.col-xs-12{padding-top:2px;padding-bottom:2px;}
</style>
#{/set}
<!-- 页面主内容 -->
<div ng-controller="controller">
    <div class="clearfix">
        <ol class="breadcrumb pull-left">
            <li><a href="@{PlanningSendController.list()}">计划下发</a></li>
            <li class='blue'>[计划下发]-创建</li>
        </ol>
    </div>
    <div>
    	<div>
		    <table class="table order-table-detail">
		        <tbody>
		            <tr>
		                <th>基本信息</th>
		                <td>
		                	<div class="col-xs-5">
		                        <span class="color666666">名称：</span>
		                         <div class="col-xs-8">
                                    <input type="text" ng-model="item.Shipper" class="form-control ng-pristine ng-untouched ng-valid"  placeholder="名称"/>
                                </div>
		                    </div>
		                    <div class="col-xs-5">
		                        <span class="color666666">文号：</span>
								<div class="col-xs-8">
                                    <input type="text" ng-model="item.TrafficUnitName" class="form-control ng-pristine ng-untouched ng-valid"  placeholder="文号"/>
                                </div>
		                    </div>
		                </td>
		            </tr>
		     		<tr>
		                <th colspan="2">
		                    <span class="pull-right">
		                        <!--<a href="javascript:void(0);">打包下载</a> -->
		                    </span>附件信息&nbsp;&nbsp;&nbsp;&nbsp;
		                    <a href="javascript:void(0);" class="pull-center ng-pristine ng-untouched ng-valid" accept=".PDF,.doc,.xls,.xlsx,.Txt,.JPG,.PNG,.BMP,.GIF" ng-multiple="true" ng-file-change="uploadAttachments($attachments)" ng-file-select="" ng-model="$attachments">
                        		<span class="glyphicon glyphicon-paperclip"></span><span class="m-l-10 m-r-10 colorblack" style="font-weight:normal">添加附件</span>
                    		</a>
                    		<a class="color666666" style="font-weight:normal">（最大20M，支持格式：PDF、Word、Excel、Txt、JPG、PNG、BMP、GIF）</a>
		                </th>
		            </tr>
		             <tr>
		                <td colspan="2" class="nob_t">
		                    <div class="m-b-10"
		                         ng-repeat="attachment in attachments">
		                        <div class="fileshow" style="line-height:20px;">
		                            <a ng-href="/{{attachment.FilePath}}" target="_blank" ng-bind="attachment.FileWithExtension" class="ng-binding" href="/{{attachment.FilePath}}"></a>
		                            <button type="button" class="close" aria-label="Close" ng-click="delAttachment($index)">
		                                <span aria-hidden="true">×</span>
		                            </button>
		                        </div>
		                    </div>
		                </td>
		            </tr> 
		        </tbody>
		    </table>
		   <div class="order-add">
		        <h4 class="text-right">
		            <a class="btn btn-warning btn-lg m-l-15" href="@{PlanningSendController.list()}">保存</a>
		        </h4>
		    </div>
		</div>
    </div>
     <div id="loading"></div>
</div>			
#{set 'moreScripts'}
<!-- 增加新的脚本文件 -->
<script type="text/javascript" src="@{'/public/javascripts/controllers/PlanningSendController/create.js'}" charset="utf-8"></script>
#{/set}
